﻿/* 基础样式 */
html, body, .app-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 表单样式优化 */
.antd-Form-item {
    padding-bottom: 5px;
}

/* 顶部导航栏图标样式 */
.notification-btn,
.chat-btn {
    font-size: 18px !important;
    color: #666 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover,
.chat-btn:hover {
    color: #1890ff !important;
    transform: scale(1.05);
}

/* 通知徽章样式 */
.cxd-Badge {
    background-color: #f5222d !important;
    color: white !important;
    font-size: 12px !important;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
    box-shadow: 0 0 0 1px #fff;
}

/* 聊天消息通知组件样式 */
.chat-notification {
    cursor: pointer;
    padding: 8px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.chat-notification:hover {
    background-color: rgba(24, 144, 255, 0.05);
}

.chat-notification .sender {
    font-weight: bold;
    margin-bottom: 4px;
}

.chat-notification .message {
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.chat-notification .action {
    font-size: 12px;
    color: #1890ff;
    text-align: right;
    transition: color 0.2s ease;
}

.chat-notification:hover .action {
    text-decoration: underline;
    color: #40a9ff;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .notification-btn,
    .chat-btn {
        padding: 0 5px;
    }
    
    .chat-notification .message {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .chat-notification .message {
        max-width: 150px;
    }
}